import java.util.logging.Level;

/**
 * Exception class thrown when a username is already taken
 * @author bethanysumner
 *
 * @version $Revision: 1.0 $
 */
public class UsernameAlreadyTakenException extends Exception {
	
	/**
	 * UsernameAlreadyTakenException default constructor
	 */
	public UsernameAlreadyTakenException() {
		Logs log = new Logs();
		log.logNonError(Level.WARNING, "Attempted to add a username that was already taken.");
    }
	
	/**
	 * UsernameAlreadyTakenException constructor with message
	 * @param msg Message describing the exception
	 */
	public UsernameAlreadyTakenException(String msg) {
        super(msg);
    }
	
}
